import request from '@/utils/request'
import {getchannelno } from '@/utils/storage'
// 1. 请求产品
export const getproduc = () => {
  return request.get('/api/order/productList',{
    params: {
      channelNo: getchannelno(),
      type: 'H5'
    }
  })
}

// 2.请求支付方式
export const getpayuse = () => {
  return request.get('/api/order/payType',{
    params: {
      channelNo: getchannelno(),
      type: 'H5'
    }
  })
}

// 2.发起支付
export const payments = (obj) => {
  return request.post('/api/order/createOrder',{
    ...obj
  })
}
